/**
 * Created by wxb on 2017/2/2.
 */
(function () {
  'use strict';

  angular.module('BlurAdmin.theme.components')
    .controller('ImageCropModalCtrl', ImageCropModalCtrl);

  /** @ngInject */
  function ImageCropModalCtrl($scope, $uibModalInstance, cropSrc, cropWidth, cropHeight) {
    $scope.cropSrc = cropSrc;
    $scope.myCroppedImage = '';
    $scope.cropWidth = cropWidth;
    $scope.cropHeight = cropHeight;
    
    $scope.ok = function () {
      $uibModalInstance.close($scope.myCroppedImage);
    };

    $scope.cancel = function () {
      $uibModalInstance.dismiss('cancel');
    };



  }

})();